package com.wangfeixiong.simpleFactory;

public class OperationFactory {


    public  static  Operation createOperation(char operator ,double numOne,double numTwo){

        switch (operator){
            case  '+':
                {
                  return   new AddOperation(numOne, numTwo);
                }
                default:
        }
        return null;
    }



}
